import { createApp } from 'vue'
import './style.css'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
// import Layui from '@layui/layui-vue'
// import '@layui/layui-vue/lib/index.css'
import 'element-plus/dist/index.css'
import pinia from './store/index'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-expect-error
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register'
import gloalComponent from '@/components'
// 引入全局的样式
import '@/styles/index.scss'
// 引入路由进行注册
import router from './router'
const app = createApp(App)
//安装
app.use(ElementPlus, {
  locale: zhCn, //element-plus国际化配置
})
// app.use(Layui).mount('#app')
import './permission'
app.use(gloalComponent)
app.use(router)
app.use(pinia)
//挂载
app.mount('#app')
